<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
<div id="app">
  <cpn>
    <template v-slot:left>
      左边的
    </template>
    <template v-slot:center>
      中间的
    </template>
    <template v-slot:right>
      右边的
    </template>
  </cpn>
</div>

<template id="cpn">
<div>
  <slot name="left"></slot>
  <slot name="center"></slot>
  <slot name="right"></slot>
</div>
</template>

<script src="./js/vue.js"></script>

<script>
  const app = new Vue({
    el:'#app',
    data:{
      message:'Hello World'
    },
    components:{
      cpn:{
        template:'#cpn'
      }
    }
  });
</script>
</body>
</html>